import request from '@/utils/request'

// 查询采购商认证信息列表
export function listPurch_info(query) {
  return request({
    url: '/system/purch_info/list',
    method: 'get',
    params: query
  })
}

// 查询采购商认证信息详细
export function getPurch_info(id) {
  return request({
    url: '/system/purch_info/' + id,
    method: 'get'
  })
}

// 新增采购商认证信息
export function addPurch_info(data) {
  return request({
    url: '/system/purch_info',
    method: 'post',
    data: data
  })
}

// 采购商信息认证
export function authPurch_info(data) {
  return request({
    url: '/system/purch_info/auth',
    method: 'post',
    data: data
  })
}


// 修改采购商认证信息
export function updatePurch_info(data) {
  return request({
    url: '/system/purch_info',
    method: 'put',
    data: data
  })
}

// 删除采购商认证信息
export function delPurch_info(id) {
  return request({
    url: '/system/purch_info/' + id,
    method: 'delete'
  })
}
